/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ControlLager;
import ModelLager.*;
import DBLager.*;
import java.util.ArrayList;
/**
 *
 * @author JesperJensen
 */
public class InVoicePCTR 
{
    public InVoicePCTR()
    {
        
    }
    public InVoiceP findInVoiceP(int InVoiceNo)
    {
        IFDbInVoiceP dbInv = new DbInVoiceP();
        return dbInv.findInVoiceP(InVoiceNo);
    }
    
    public int insertInvoice(InVoiceP InvObj)
    {
        IFDbInVoiceP dbInv = new DbInVoiceP();
        return dbInv.insertInvoice(InvObj);
    }
    
    public int deleteInVoiceP(int inVoiceNo)
    {
        IFDbInVoiceP dbInv = new DbInVoiceP();
        return dbInv.deleteInVoiceP(inVoiceNo);
        
    }
    
    public InVoiceP findWithPreQuery(int inVoiceNo)
    {
        IFDbInVoiceP dbInv = new DbInVoiceP();
        return dbInv.findWithPreQuery(inVoiceNo);
    }
    
    public ArrayList<InVoiceP> findByAllInVoicePreQuery()
    {
        IFDbInVoiceP dnInv = new DbInVoiceP();
        return dnInv.findByAllInVoicePreQuery();
    }
    
}
